#include <linux/sched/task_types.h>
#include <linux/sched/task.h>
#include <linux/printk.h>
#include <linux/delay.h>
#include <linux/list.h>

#include <msh/export.h>

static void ts(int argc, char **argv)
{
    struct task_struct *task, *cur = current;
    struct list_head *head = &cur->tasks;

    printk(" task: %s\n", cur->name);
    list_for_each_entry(task, head, tasks)
    {
        printk("task: %s\n", task->name);
    }
}
MSH_CMD_EXPORT(ts, list tasks);
